package o;

public class cv {
    private boolean ʻ = false;
    private int ʽ = 0;
    private int ˊ = Integer.MIN_VALUE;
    private int ˋ = Integer.MIN_VALUE;
    private int ˎ = 0;
    private int ˏ = 0;
    private int ॱ = 0;
    private boolean ॱॱ = false;

    public int ˎ() {
        return this.ʻ ? this.ˏ : this.ˎ;
    }

    public int ˋ() {
        return this.ʻ ? this.ˎ : this.ˏ;
    }

    public void ॱ(int i, int i2) {
        this.ˊ = i;
        this.ˋ = i2;
        this.ॱॱ = true;
        if (this.ʻ) {
            if (i2 != Integer.MIN_VALUE) {
                this.ˎ = i2;
            }
            if (i != Integer.MIN_VALUE) {
                this.ˏ = i;
                return;
            }
            return;
        }
        if (i != Integer.MIN_VALUE) {
            this.ˎ = i;
        }
        if (i2 != Integer.MIN_VALUE) {
            this.ˏ = i2;
        }
    }

    public void ˊ(int i, int i2) {
        this.ॱॱ = false;
        if (i != Integer.MIN_VALUE) {
            this.ॱ = i;
            this.ˎ = i;
        }
        if (i2 != Integer.MIN_VALUE) {
            this.ʽ = i2;
            this.ˏ = i2;
        }
    }

    public void ˋ(boolean z) {
        if (z != this.ʻ) {
            this.ʻ = z;
            if (!this.ॱॱ) {
                this.ˎ = this.ॱ;
                this.ˏ = this.ʽ;
            } else if (z) {
                this.ˎ = this.ˋ != Integer.MIN_VALUE ? this.ˋ : this.ॱ;
                this.ˏ = this.ˊ != Integer.MIN_VALUE ? this.ˊ : this.ʽ;
            } else {
                this.ˎ = this.ˊ != Integer.MIN_VALUE ? this.ˊ : this.ॱ;
                this.ˏ = this.ˋ != Integer.MIN_VALUE ? this.ˋ : this.ʽ;
            }
        }
    }
}
